//
//  WifiView.m
//  crowd
//
//  Created by 马腾飞 on 16/5/4.
//  Copyright © 2016年 caocaod.com. All rights reserved.
//

#import "WifiView.h"

@interface WifiView()



@end

@implementation WifiView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _wifiImage = [[UIImageView alloc] initWithFrame:CGRectMake((frame.size.width-42)/2, (VIEW_HEIGHT-42)/2-102, 42, 42)];
        _wifiImage.contentMode = UIViewContentModeScaleAspectFit;
//        [_wifiImage setImage:[UIImage imageNamed:@"wifi"]];
        [self addSubview:_wifiImage];
        
        _wifiLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, (VIEW_HEIGHT-42)/2+42+9-102, VIEW_WIDTH, 12)];
//        _wifiLabel.text = @"无法连接";
        _wifiLabel.textAlignment = NSTextAlignmentCenter;
        _wifiLabel.font = [UIFont systemFontOfSize:12];
        _wifiLabel.textColor = RGB(191, 191, 191);
        [self addSubview:_wifiLabel];
    }
    return self;
}

@end
